package com.rjs.client;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

import com.rjs.service.HelloService;

public class ClientMain {

	public static void main(String[] args) throws MalformedURLException, RemoteException, NotBoundException {
		HelloService helloService = (HelloService)Naming.lookup("rmi://localhost:8081/helloService");
		System.out.println(helloService.hello("Mr Liu."));
	}
	
}
